<!-- header start-->
<header id="topHeader">
  <div class="layout clearfix">
    <a class="logo" ui-sref="home">
      <img class="fl" id="topLogo" src="./images/logo3.png" style="height:60px;" alt="让投资实现梦想">
    </a>
    <!-- 导航菜单 -->
    <nav class="fl">
      <ul class="fl menu">
        <li ui-sref-active="curr">
          <a ui-sref="home">首&nbsp;&nbsp;&nbsp;页</a>
        </li>
        <li ui-sref-active="curr">
          <a ui-sref="shop">积分商城</a>
        </li>
        <li ui-sref-active="curr">
          <a ui-sref="transaction">交易管理</a>
        </li>
        <li ui-sref-active="curr">
          <a ui-sref="account">账户管理</a>
        </li>
        <li ui-sref-active="curr">
          <a ui-sref="help">帮助中心</a>
        </li>
      </ul>
    </nav>
    <!-- 用户已登录的显示信息 -->
    <div class="fr user">
      <div class="navList">
        <div class="userTitle">
          <a id="usernameShow" ui-sref="account">{{userInfo.userName}}<span class="iconUser"></span><span class="icon"></span></a>
        </div>
        <ul class="list bgWhite shadow ">
          <!--li>
            <a ui-sref="transaction.buy.recharge">我要充值</a>
          </li-->
          <li>
            <a ui-sref="transaction.buy.withdraw">我要提现</a>
          </li>
          <li>
            <a ui-sref="transaction.center.investing">我的投资</a>
          </li>
          <li>
            <a ui-sref="account.team.award">推荐好友</a>
          </li>
          <li>
            <a ui-sref="transaction.center.history">我的奖励</a>
          </li>
          <li>
            <a ng-click="logout()" class="noBorder">退出登录</a>
          </li>
        </ul>
      </div>
    </div>
  </div>
</header>
<script>

  // initialize core components
  $('.user>.navList').hover(
    function () {
      $('.user').addClass('curr');
    }, function () {
      $('.user').removeClass('curr');
    });

</script>
<!-- header end-->
